-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate DBP permissions #2673
Validate DBP permissions #2673
Conversation
# Conflicts: # DuckDuckGo/DBP/DBPHomeViewController.swift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this to a different file since HomeViewController was getting a bit too crowded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was always a bit random being in there anyway
Two current limitations:
Also, would be pretty slick and probably a positive impact on usage if after doing the application move the app opened with the DBP tab still open, but again not a priority for this PR IMO (but worth adding a follow up task for) Otherwise behavior worked as expected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good!
I think we should prioritize follow up on better designs for this, can you add a task to the backlog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Bunn I’ve added some comments. I want to get your thoughts.
func checkStatus() -> DataBrokerPrerequisitesStatus | ||
} | ||
|
||
final class DefaultDataBrokerPrerequisitesStatusVerifier: DataBrokerPrerequisitesStatusVerifier { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Let’s add unit tests to this logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* main: (22 commits) Fix DataBrokerProtectionProcessor.swift lint Fix SwiftLint Add parameter allowed encoding to error descriptions (#2691) Remove debug flags Bump version to 1.85.0 (174) Revert interrupt logic (#2699) Fix downloads not appearing (#2693) Bump version to 1.85.0 (173) DBP interrupt fixes for release (#2696) Bookmark All Tabs (#2683) Fix DBP interrupt function not being cleared on succesful completion (#2690) Bump version to 1.85.0 (172) Validate DBP permissions (#2673) Bump BSK (#2688) Add Untitled tab title (#2650) Stop first scan completed notification being sent if there's an error (#2685) DBP: Rename scanAllBrokers to startManualScan (#2679) macOS: Bundle-Specfic Autofill Secure Vault Keychain Items (#2652) Bump version to 1.85.0 (171) [Release PR] Link Lottie with the NetworkProtectionUI library (#2676) ...
Task/Issue URL: https://app.asana.com/0/1199230911884351/1207136634464353/f
Description:
Display error messages if DBP agent prerequisites aren't met
Steps to test this PR: